<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>6-设置变量获取值</title>
		<script type="text/javascript">
			//1.声明变量password去接收prompt输入的值
			//var password = prompt('请输入您的密码!');
			//去控制台打印输出 +拼接
			//console.log("密码:::"+password)
			//console.log("新密码:",password)
			
			//2.变量的声明
			//声明一个变量，变量名为sex，表示性别
			var sex;
			//给变量进行赋值
			sex = 0; //0女 1男生
			sex = '男';
			
			
			//3.变量的值被覆盖
			var username = 'baidu';
			//给username重新赋值了
			username = 'sina';
			
			alert(username);
			
			
			
		</script>
	</head>
	<body>
		
	</body>
</html>
